home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
thinkref
/
archive
/
THINKPascalUH2.1.sea
/
THINKPas Univ Hdr 2.1
/
Interfaces
/
CMConversions.p
< prev
next >
Wrap
Text File
|
1995-09-14
|
4KB
|
145 lines
{ Converted with MPW2TPas Tuesday, September 12, 1995 5:24:22 PM }
{}
{ File: CMConversions.p}
{ }
{ Contains: ColorSync base <-> derived color space conversion Component interface}
{ }
{ Version: Technology: ColorSync 2.0}
{ Package: Universal Interfaces 2.1 in “MPW Latest” on ETO #18}
{ }
{ Copyright: © 1984-1995 by Apple Computer, Inc.}
{ All rights reserved.}
{ }
{ Bugs?: If you find a problem with this file, use the Apple Bug Reporter}
{ stack. Include the file and version information (from above)}
{ in the problem description and send to:}
{ Internet: apple.bugs@applelink.apple.com}
{ AppleLink: APPLE.BUGS}
{ }
{}
unit CMConversions;
interface
{$IFC UNDEFINED __CMCONVERSIONS__}
{$SETC __CMCONVERSIONS__ := 1}
uses
ConditionalMacros, Types, Components, Quickdraw, Dialogs, Printing, CMICCProfile, CMApplication;
{ $PUSH}
{ $ALIGN MAC68K}
{ $LibExport+}
const
CMConversionInterfaceVersion = 1;
{ Component function selectors }
kCMXYZToLab = 0;
kCMLabToXYZ = 1;
kCMXYZToLuv = 2;
kCMLuvToXYZ = 3;
kCMXYZToYxy = 4;
kCMYxyToXYZ = 5;
kCMRGBToHLS = 6;
kCMHLSToRGB = 7;
kCMRGBToHSV = 8;
kCMHSVToRGB = 9;
kCMRGBToGRAY = 10;
kCMXYZToFixedXYZ = 11;
kCMFixedXYZToXYZ = 12;
function CMXYZToLab (ci: ComponentInstance; {CONST}
var src: CMColor; {CONST}
var white: CMXYZColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 0, $7000, $A82A;
{$ENDC}
function CMLabToXYZ (ci: ComponentInstance; {CONST}
var src: CMColor; {CONST}
var white: CMXYZColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 1, $7000, $A82A;
{$ENDC}
function CMXYZToLuv (ci: ComponentInstance; {CONST}
var src: CMColor; {CONST}
var white: CMXYZColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 2, $7000, $A82A;
{$ENDC}
function CMLuvToXYZ (ci: ComponentInstance; {CONST}
var src: CMColor; {CONST}
var white: CMXYZColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 16, 3, $7000, $A82A;
{$ENDC}
function CMXYZToYxy (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 4, $7000, $A82A;
{$ENDC}
function CMYxyToXYZ (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 5, $7000, $A82A;
{$ENDC}
function CMRGBToHLS (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 6, $7000, $A82A;
{$ENDC}
function CMHLSToRGB (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 7, $7000, $A82A;
{$ENDC}
function CMRGBToHSV (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 8, $7000, $A82A;
{$ENDC}
function CMHSVToRGB (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 9, $7000, $A82A;
{$ENDC}
function CMRGBToGray (ci: ComponentInstance; {CONST}
var src: CMColor; var dst: CMColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 10, $7000, $A82A;
{$ENDC}
function CMXYZToFixedXYZ (ci: ComponentInstance; {CONST}
var src: CMXYZColor; var dst: CMFixedXYZColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 11, $7000, $A82A;
{$ENDC}
function CMFixedXYZToXYZ (ci: ComponentInstance; {CONST}
var src: CMFixedXYZColor; var dst: CMXYZColor; count: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, 12, 12, $7000, $A82A;
{$ENDC}
{ $ALIGN RESET}
{ $POP}
{$ENDC}
{__CMCONVERSIONS__}
implementation
end.